package net.sk.china.front.service.product;

import com.baomidou.mybatisplus.extension.service.IService;
import net.sk.china.common.model.product.StoreProductReply;
import net.sk.china.front.request.order.StoreProductReplyAddRequest;

/**
 * StoreProductReplyService 接口
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2024 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2024/6/13 13:55
 * +----------------------------------------------------------------------
 */
public interface StoreProductReplyService extends IService<StoreProductReply> {

    /**
     * 创建订单评价
     * @param request 请求参数
     * @return {@code boolean}
     */
    boolean create(StoreProductReplyAddRequest request);

    /**
     * 查询是否已经回复
     * @param unique skuId
     * @param orderId 订单id
     * @return {@code boolean}
     */
    boolean isReply(String unique, Integer orderId);
}
